export default {
    name: 'BaseInfo',
    props: ['data'],
    data() {
        return {
            formList: [
                { label: '工单编号', prop: 'workOrderNo' },
                { label: '工程名称', prop: 'projectName' },
                { label: '工程面积', prop: 'renovationTotalArea' },
                { label: '工程地址', prop: 'projectAddress' },
                { label: '甲方联系人', prop: 'followUpEmp' },
                { label: '甲方联系电话', prop: 'followUpPhoene' }
            ]
        };
    },
    computed: {
        formData() {
            return this.formList.reduce((pre, cur) => {
                const prop = cur.prop;
                pre[prop] = this.data[prop];
                return pre;
            }, {});
        }
    }
};
